import http from "@/api/index";

export function getCameraList(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/cameraList`,
    method: "POST",
    data:data
  });
}

export function getUserList(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/userList`,
    method: "POST",
    data:data
  });
}
export function getDeptTree(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/getDeptTree`,
    method: "POST",
    data:data
  });
}

export function getActionList(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/getActionList`,
    method: "POST",
    data:data
  });
}
export function cameraSave(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/cameraSave`,
    method: "POST",
    data:data
  });
}
export function delCamera(data: Object): Promise<Object> {
  return http.request({
    url: `/admin/config/delCamera`,
    method: "POST",
    data:data
  });
}